package com.yoyo.system.service.impl;

import com.yoyo.common.core.domain.entity.SysUser;
import com.yoyo.system.domain.SysLoginInfo;
import com.yoyo.system.mapper.SysUserMapper;
import com.yoyo.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zyl
 * @Date 2021/6/27 -10:52
 */
@Service
public class SysUserServiceImpl implements ISysUserService {
    @Autowired
    SysUserMapper sysUserMapper;


    @Override
    public int updateUserInfo(SysUser user) {
        return sysUserMapper.updateUserInfo(user);
    }

    @Override
    public SysUser selectUserByLoginName(String username) {
        return sysUserMapper.selectUserByLoginName(username);
    }
}
